<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
        <script type="text/javascript" src="/Sites/AppRes/Jquery/jquery-1.10.0.min.js"></script>
        <script type="text/javascript">
            jQuery(document).ready(function($){
                var apiurl = 'http://www.ehaocha.com/ServicesAPI/CommonApi.aspx';            
                var uid = '1800';
                var pwd = '789789';
                var msg = '';
                if (uid.length == 0)
                    msg += '用户名未填写!\n';
                if (pwd.length == 0)
                    msg += '密码未填写!\n';
                if (msg.length > 0) {
                    alert(msg);
                    return;
                }
                //pwd=$.md5lite(pwd);
                var teststr=apiurl+'?agentId='+uid+'&password='+pwd+'&action=login&rnd='+Math.random();
                teststr="http://localhost:8099/index.php"
                //document.write(teststr);
                //alert(teststr);
                $.post(teststr,function(data){alert(data)});
                $.post(apiurl, {agentId: uid, password: pwd, action: 'login', rnd: Math.random()}, function(data) {
                    alert(data);
                });
            });
            </script>
    </head>
    <body>
        <div>TODO write content</div>
    </body>
</html>
